package com.zyong.design.pattern.mediator.case1;

/**
 * @program: zyong-design-pattern
 * @ClassName: Mediator
 * @author: zyong
 * @create: 2024-03-31 23:41
 */
public interface Mediator {
    /**
     * 将Colleague注册到Mediator
     * @param colleague 同事类对象
     */
    void register(Colleague colleague);

    /**
     * 转发消息
     * @param colleague 源同事类对象
     * @param message 消息
     */
    void relay(Colleague colleague, String message);
}
